HT_Resource.prototype.httpGet = function() {
	if(this.resourceUri == null)
		return null;
	var pref = new Preferences(PREF_PREFIX);
	var defaultService = pref.getPref("service", DEFAULT_SERVICE);
	if(!defaultService.endsWith("/"))
		defaultService = defaultService + "/";
	var requestUrl = defaultService + "resource/" + encodeURIComponent(this.resourceUri) + "/";
	var getRequest = new GetRequest(requestUrl);
	var http = new HTTPCore();
	var res = http.doOperation(getRequest);
	if(!res) return null;
	debug("[htObject.js] HT_Resource.httpGet URL:" + requestUrl, 4);
	debug("[htObject.js] HT_Resource.httpGet Response:" + http.response, 4);
	resourceParser.init();
	return resourceParser.parser(http.response);
}

HT_Entity.prototype.httpGet = function(){
	if(this.entityUri == null)
		return null;
	var getRequest = new GetRequest(this.entityUri);
	var http = new HTTPCore();
	var res = http.doOperation(getRequest);
	if(!res) return null;
	debug("[htObject.js] HT_Entity.httpGet URL:" + this.entityUri, 4);
	debug("[htObject.js] HT_Entity.httpGet Response:" + http.response, 4);
	entityParser.init();
	return entityParser.parser(http.response);
}

HT_Topic.prototype.httpGet = function(){
	if(this.topicUri == null)
		return null;
	var getRequest = new GetRequest(this.topicUri);
	var http = new HTTPCore();
	var res = http.doOperation(getRequest);
	if(!res) return null;
	debug("[htObject.js] HT_Topic.httpGet URL:" + this.topicUri, 4);
	debug("[htObject.js] HT_Topic.httpGet Response:" + http.response, 4);
	topicParser.init();
	return topicParser.parser(http.response);
}

